import Layout from '@/layout'

const educationalRouter = {
  path: '/educational',
  component: Layout,
  redirect: '/educational',
  name: '教务管理',
  meta: {
    title: '教务管理',
    icon: '教务管理'
  },
  children: [
    {
      path: 'curriculum',
      redirect: '/educational/curriculum/list',
      component: () => import('@/views/curriculum'),
      name: 'Course',
      meta: { title: '课程管理', icon: '课程管理' },
      children: [
        {
          path: 'list',
          hidden: true,
          component: () => import('@/views/curriculum/list'),
          name: 'CourseList',
          meta: { title: '课程列表', activeMenu: '/educational/curriculum', noCache: true }
        },
        {
          path: 'courseAdd',
          hidden: true,
          component: () => import('@/views/curriculum/add'),
          name: 'CourseAdd',
          meta: { title: '新建课程', activeMenu: '/educational/curriculum', noCache: true }
        },
        {
          path: 'courseEdit',
          hidden: true,
          component: () => import('@/views/curriculum/edit'),
          name: 'CourseEdit',
          meta: { title: '编辑课程', activeMenu: '/educational/curriculum', noCache: true }
        },
        {
          path: 'draft',
          hidden: true,
          component: () => import('@/views/curriculum/draft'),
          name: 'CourseDraft',
          meta: { title: '草稿课程', activeMenu: '/educational/curriculum', noCache: true }
        },
        {
          path: 'curriculum/courseCategory',
          hidden: true,
          component: () => import('@/views/curriculum/courseCategory'),
          name: 'courseCategory',
          meta: { title: '新课分类' }
        }
      ]
    },
    // {
    //   path: 'curriculum/add',
    //   hidden: true,
    //   component: () => import('@/views/curriculum/add'),
    //   name: 'CourseAdd',
    //   meta: { title: '新建课程', activeMenu: '/educational/curriculum', noCache: true }
    // },
    // {
    //   path: 'curriculum/edit',
    //   hidden: true,
    //   component: () => import('@/views/curriculum/edit'),
    //   name: 'CourseEdit',
    //   meta: { title: '编辑课程', activeMenu: '/educational/curriculum', noCache: true }
    // },
    // {
    //   path: 'curriculum/draft',
    //   hidden: true,
    //   component: () => import('@/views/curriculum/draft'),
    //   name: 'CourseDraft',
    //   meta: { title: '草稿课程', activeMenu: '/educational/curriculum', noCache: true }
    // },
    // {
    //   path: 'curriculum/courseCategory',
    //   hidden: true,
    //   component: () => import('@/views/curriculum/courseCategory'),
    //   name: 'courseCategory',
    //   meta: { title: '新课分类' }
    // },
    {
      path: 'student',
      component: () => import('@/views/student/list'),
      name: 'StudentList',
      meta: { title: '学员管理', icon: '学员管理' }
    },
    {
      path: 'scheduleCourse',
      component: () => import('@/views/scheduleCourse'),
      name: 'scheduleCourseList',
      meta: { title: '课程排课', icon: '课程排课' }
    }
  ]
}
export default educationalRouter
